package factory;

import dao.UserDao;
import dao.impl.UserDaoImpl;

/**
 * Spring静态工厂创建Bean对象
 * 需要在bean标签中配置factory-method属性
 * Spring解析到factory-method属性后会找到对应的静态工厂类执行指定的方法返回对象
 */
public class StaticFactory {
    public static UserDao getUserDao(){
        return new UserDaoImpl();
    }
}
